home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 351-375 / disk_355 / tracksalve / source / makefile < prev    next >
Makefile  |  1992-05-06  |  2KB  |  104 lines

  1. #  The system on which this program is developed is an A1000 with four
  2. #  drives and one Meg fast memory.  There is a ramdisk of 506K with two
  3. #  directories INCLUDE and OBJS.  INCLUDE is known as INCLUDE:    and OBJS
  4. #  as VO:.  All sources are in the root of a disk known as TrackSalve:.
  5. #  This disk has two directories LIB and OBJS.    LIB is known as LIB:
  6. #  All includes (.i and .h mixed) and their directory structures are copied
  7. #  to INCLUDE:.     No sources are in ram and objects are immediately after
  8. #  compilation copied to disk.    The A1000 has no clock, and to maintain
  9. #  some time integrity each time there is a successful link, Sys:  is
  10. #  written to by Date to sys:tstamp.
  11. #  The compiler is Lattice 504 and this makefile is made for Lmk.
  12. #
  13.  
  14.  
  15. #--    Objects
  16.  
  17. STARTOBJS=\
  18.  VO:startup.o\
  19.  VO:_main.o\
  20.  
  21. COBJS=\
  22.  VO:explain.o\
  23.  VO:version.o\
  24.  VO:patch.o\
  25.  VO:switch.o\
  26.  VO:main.o\
  27.  
  28. SYSLIBS=\
  29.  LIB:lc.lib\
  30.  LIB:amiga.lib\
  31.  
  32.  
  33. #--    Commands and switches
  34.  
  35. #CC=        Lc
  36. CCFLAGS=    -v -b1 -d2 -cc    -qT: -iINCLUDE: -oVO:
  37.  
  38. #ASSEMBLER=    Assem
  39. #ASMFLAGS=    -c s -i INCLUDE: -o
  40. ASSEMBLER=    Asm
  41. ASMFLAGS=    -d -dLatticeAsm -iINCLUDE: -o
  42.  
  43. #--    Link
  44.  
  45. RD0:ts:        $(STARTOBJS) $(COBJS) $(SYSLIBS) makefile
  46.         -rez >NIL: -r Lc $(ASSEMBLER)
  47.         -cp TO RD0:ts.w FROM << (T:ts.w)
  48. FROM
  49. $(STARTOBJS)
  50. $(COBJS)
  51. LIB
  52. $(SYSLIBS)
  53. TO RD0:ts
  54. SC
  55. SD
  56. ;NODEBUG
  57. ADDSYM
  58. <
  59.         -Blink     BATCH    WITH RD0:ts.w
  60.         date to sys:tstamp
  61.  
  62.  
  63. #--    Asm sources
  64.  
  65.  
  66. VO:startup.o:    startup.a
  67.         -rez >NIL: -r Lc -a $(ASSEMBLER)
  68.         $(ASSEMBLER) -dRelative $(ASMFLAGS)$@ startup.a
  69.         -cp $@ OBJS/
  70.  
  71. VO:_main.o:    _main.a
  72.         -rez >NIL: -r Lc -a $(ASSEMBLER)
  73.         $(ASSEMBLER) -dRelative $(ASMFLAGS)$@ _main.a
  74.         -cp $@ OBJS/
  75.  
  76. VO:explain.o:    explain.a
  77.         -rez >NIL: -r Lc -a $(ASSEMBLER)
  78.         $(ASSEMBLER) -dRelative $(ASMFLAGS)$@ explain.a
  79.         -cp $@ OBJS/
  80.  
  81. VO:version.o:    version.a
  82.         -rez >NIL: -r Lc -a $(ASSEMBLER)
  83.         $(ASSEMBLER) -dRelative $(ASMFLAGS)$@ version.a
  84.         -cp $@ OBJS/
  85.  
  86. VO:patch.o:    patch.a
  87.         -rez >NIL: -r Lc -a $(ASSEMBLER)
  88.         $(ASSEMBLER) $(ASMFLAGS)$@ patch.a
  89.         -cp $@ OBJS/
  90.  
  91. VO:switch.o:    switch.a
  92.         -rez >NIL: -r Lc -a $(ASSEMBLER)
  93.         $(ASSEMBLER) -dRelative $(ASMFLAGS)$@ switch.a
  94.         -cp $@ OBJS/
  95.  
  96. #--    C sources
  97.  
  98.  
  99. VO:main.o:    main.c
  100.         -rez >NIL: -r $(ASSEMBLER) -a Lc
  101.         Lc $(CCFLAGS) $>
  102.         -cp $@ OBJS/
  103.  
  104.